﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MqttToDatabase.Table2
{
    public class serialdevicedata
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int deviceid { get; set; }
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int time { get; set; }

        public float? HT_Temp_1 { get; set; } //温度1段到温度7段
        public float? HT_Temp_2 { get; set; }
        public float? HT_Temp_3 { get; set; }
        public float? HT_Temp_4 { get; set; }
        public float? HT_Temp_5 { get; set; }

        public float? HT_Temp_6 { get; set; }
        public float? HT_Temp_7 { get; set; }

        public float? HT_Shot_time { get; set; }
        public float? HT_Colling_time { get; set; }

        public int? HT_shot_pressure_1 { get; set; }
        public int? HT_shot_pressure_2 { get; set; }
        public int? HT_shot_pressure_3 { get; set; }

        public int? HT_shot_speed_1 { get; set; }
        public int? HT_shot_speed_2 { get; set; }
        public int? HT_shot_speed_3 { get; set; }

        public float? HT_shot_pos_1 { get; set; }
        public float? HT_shot_pos_2 { get; set; }
        public float? HT_shot_pos_3 { get; set; }

        public int? HT_hp_pressure_1 { get; set; }
        public int? HT_hp_pressure_2 { get; set; }
        public int? HT_hp_pressure_3 { get; set; }

        public int? HT_hp_speed_1 { get; set; }
        public int? HT_hp_speed_2 { get; set; }
        public int? HT_hp_speed_3 { get; set; }

        public float? HT_hp_time_1 { get; set; }
        public float? HT_hp_time_2 { get; set; }
        public float? HT_hp_time_3 { get; set; }

        public float? HT_shot_back_pos { get; set; }

        public int? status { get; set; }
        public int? cnt { get; set; }
        public string other { get; set; } = "";

        public int? HT_storage_pressure_n { get; set; }

        public int? HT_storage_speed_n { get; set; }

        public float? HT_storage_pos_n { get; set; }

        public int? HT_storage_B_pressure_n { get; set; }

        //20250506 新增要求，实时数据，包括上面有注释的变量，和下面的新增变量
        public int? HT_pressure { get; set; } //输出压力
        public int? HT_speed { get; set; } //(最大)输出速度
        public int? HT_B_pressure { get; set; } //输出背压
        public float? HT_Injec_pos { get; set; } //射出位置
        public int? HT_Shot_start_point_pos { get; set; } //上模射出起点位置
        public int? HT_HP_switch_pos { get; set; } //上模保压转换位置
        public int? HT_Shot_end_point_pos { get; set; } //上模射出终点位置
        public int? HT_Shot_monitor_pos { get; set; } //上模射出监控位置
    }
}
